package com.changshi.video.mapper;

import com.changshi.service.video.api.entity.Video;
import org.apache.ibatis.annotations.Select;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

/**
 * @ClassName VideoMapper
 * @Date 2020/1/2 20:08
 * @Author LeeSwag
 * @Version 1.0
 **/
public interface VideoMapper extends Mapper<Video> {

    /**
     * 查询所有上架视频
     * @return
     */
    @Select("select * from tb_video where is_marketable = 1")
    List<Video> findAll();
}
